﻿using System;
using System.Threading.Tasks;

namespace TK.Socket
{
    /// <summary>
    /// ISocketServer
    /// </summary>
    public interface ISocketServer : IDisposable
    {
        /// <summary>
        /// 数据接收
        /// </summary>
        event Action<DataPacket> ReceiveData;

        /// <summary>
        /// 启用sokcet服务
        /// </summary>
        Task Start();
    }
}
